package com.our.sys.project1.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.springside.modules.orm.grid.ViewField;

@Entity
@Table(name = "T_FreshLogs")
public class FreshLogs implements Serializable {

    private static final long serialVersionUID = -3047520897105524875L;
    @ViewField
    private Long id;
    @ViewField(header = "操作时间", width = 100, align = "left")
    private String time;
    @ViewField(header = "操作人", width = 100, align = "left")
    private String who;
    @ViewField(header = "入库单号", width = 100, align = "left")
    private String stockNo;
    @ViewField(header = "总金额", width = 100, align = "left")
    private BigDecimal money;
    @ViewField(header = "发票号", width = 100, align = "left")
    private String number;

    @Id
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "Id_Generator")
    @TableGenerator(name = "Id_Generator", table = "ID_GENERATOR", pkColumnName = "GEN_NAME", valueColumnName = "GEN_VAL", pkColumnValue = "T_FreshLogs")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getWho() {
        return who;
    }

    public void setWho(String who) {
        this.who = who;
    }

    public String getStockNo() {
        return stockNo;
    }

    public void setStockNo(String stockNo) {
        this.stockNo = stockNo;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

}
